package cn.com.roy.thread.t6_2.singleton_1;

public class MyObject {
    private static MyObject myObject;

    private MyObject() {
    }

    public static MyObject getInstance() {
        if (myObject == null)
            myObject = new MyObject();
        return myObject;
    }
}
